﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrNewsDetails.ascx.cs"
    Inherits="Controls_News_ctrNewsDetails" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc2" %>
<div>
    <asp:HyperLink ID="hplFaceBook" CssClass="text" runat="server" ImageUrl="~/Images/facebook.gif"
        ToolTip="Share Facebook"></asp:HyperLink>
    &nbsp;<asp:HyperLink ID="hplGoogle" CssClass="text" runat="server" ImageUrl="~/Images/google.gif"
        ToolTip="Share Google"></asp:HyperLink>
    &nbsp;<asp:HyperLink ID="hplTwitter" CssClass="text" runat="server" ImageUrl="~/Images/twitter.gif"
        ToolTip="Share Twitter"></asp:HyperLink>
</div>
<div>
    <asp:Label runat="server" ID="lblTitle"></asp:Label>
    <div>
        <p>
            <span style="float: right">
                <asp:Label ID="lblDatePosted" runat="server"></asp:Label></span><br />
            <asp:Label ID="lblInitData" runat="server"></asp:Label>
        </p>
        <p>
            <asp:Literal ID="ltrContent" runat="server"></asp:Literal></p>
        <div>
            <asp:Label ID="lblSource" runat="server"></asp:Label></div>
        <%--divComment--%>
        <div id="divComment" runat="server">
            <p>
                <asp:Label ID="lblComment" runat="server" Font-Bold="true" Font-Size="15px" ForeColor="#DD0000"></asp:Label></p>
            <p>
                <asp:Label ID="lbNote" runat="server" Font-Italic="true"></asp:Label></p>
            <div class="view-content">
                <div class="item-list" style="overflow: auto; overflow-x: hidden; height: 200px;
                    border: 1px solid #D2D2D2">
                    <asp:DataList ID="dtlComment" runat="server" RepeatColumns="1" Height="50px" HorizontalAlign="Left"
                        OnItemDataBound="dtlComment_ItemDataBound">
                        <ItemTemplate>
                            <div class="views-field-subject">
                                <span class="field-content">
                                    <asp:Label ID="lblCommentDetail" runat="server"></asp:Label></span>
                            </div>
                            <div class="views-field-timestamp">
                                <span class="field-content">
                                    <asp:Label ID="lblEmail" runat="server" Font-Italic="true" ForeColor="Gray"></asp:Label></span>
                            </div>
                            <br />
                        </ItemTemplate>
                    </asp:DataList>
                </div>
            </div>
        </div>
        <%--divWriteComment--%>
        <div style="padding-top: 20px" id="divWriteComment" runat="server">
            <div>
                <uc2:Alert ID="Alert1" runat="server" />
            </div>
            <p>
                <asp:Label ID="lblCommentInfo" runat="server" Font-Size="15px" ForeColor="#DD0000"
                    Font-Bold="true"></asp:Label></p>
            <div style="padding-bottom: 7px">
                <asp:Label runat="server" ID="lblUsername" CssClass="text" Width="100px"></asp:Label>
                <asp:TextBox ID="txtUserName" runat="server" MaxLength="100" CssClass="boxlonger"
                    Width="250px" ValidationGroup="rInput"></asp:TextBox><span style="color: Red; font-size: 12px">*</span>
            </div>
            <div style="padding-bottom: 7px">
                <asp:Label ID="lblEmail" runat="server" CssClass="text" Width="100px"> </asp:Label>
                <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" CssClass="boxlonger" Width="250px"
                    ValidationGroup="rInput"></asp:TextBox><span style="color: Red; font-size: 12px">*</span>
            </div>
            <div style="padding-bottom: 7px">
                <asp:Label ID="lblContent" runat="server" CssClass="text" Width="100px"></asp:Label>
                <asp:TextBox ID="txtContent" Font-Names="Arial" Font-Size="13px" runat="server" Text=""
                    MaxLength="2000" Width="570px" Height="100px" TextMode="MultiLine" CssClass="boxlonger"
                    ValidationGroup="rInput"></asp:TextBox>
            </div>
            <div>
                <br />
                <asp:Button ID="btnSave" runat="server" Width="80px" ValidationGroup="rInput" OnClick="btnSave_Click" />
            </div>
        </div>
        <!--Validator Empty-->
        <asp:RequiredFieldValidator ID="rfvUsername" runat="server" SetFocusOnError="true"
            ControlToValidate="txtUserName" Display="None" ValidationGroup="rInput" Text="*"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" SetFocusOnError="true" ControlToValidate="txtEmail"
            Display="None" ValidationGroup="rInput" Text="*"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="rfvContent" runat="server" SetFocusOnError="true"
            ControlToValidate="txtContent" Display="None" ValidationGroup="rInput" Text="*"></asp:RequiredFieldValidator>
        <!--Check email-->
        <asp:RegularExpressionValidator ID="revEmail" runat="server" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
            ControlToValidate="txtEmail" Display="None" ValidationGroup="rInput" SetFocusOnError="True"
            Text="*">
        </asp:RegularExpressionValidator>
        <asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server"
            ValidationGroup="rInput" ShowSummary="False" />
    </div>
</div>
